package com.zzc.legou.search.vo;

import com.zzc.legou.item.entity.Brand;
import com.zzc.legou.item.entity.Category;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class SearchResult {

    //页面的商品信息
    private List<Category> categories;
    //品牌信息
    private List<Brand> brands;
    //特征信息
    private List<Map<String, Object>> specs;
    //当前页面的spu信息 商品信息
    private List items;
    //页面的总数
    private Long total;
    //页面的页数大小
    private Long totalPage;

    public SearchResult() {
    }

    public SearchResult(Long total, Long totalPage, List items, List<Category> categories, List<Brand> brands, List<Map<String, Object>> specs) {
        this.total = total;
        this.totalPage = totalPage;
        this.items = items;
        this.categories = categories;
        this.brands = brands;
        this.specs = specs;
    }

}
